//
//  ResideViewController.m
//  WonderfulNotes
//
//  Created by andy on 16/1/20.
//  Copyright © 2016年 andy. All rights reserved.
//

#import "ResideViewController.h"
#import "RootViewController.h"
#import "LeftMenuViewController.h"
#import "UIColor+LNHex.h"
@interface ResideViewController ()

@end

@implementation ResideViewController

-(void)awakeFromNib{
    
    [[UINavigationBar appearance] setBarTintColor:[UIColor systemColor]];
    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
    NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                        [UIColor whiteColor],NSForegroundColorAttributeName,
                                               nil];
    [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];
    UINavigationController * nav = [[UINavigationController alloc]initWithRootViewController:[[RootViewController alloc]init]];
    UIStoryboard * mainSB = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    LeftMenuViewController * leftVC = [mainSB instantiateViewControllerWithIdentifier:@"LeftMenuViewController"];
    self.leftMenuViewController =leftVC;
    self.contentViewController = nav;

}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.backgroundImage = [UIImage imageNamed:@"Stars"];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
